package com.qsbc.pygram.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.qsbc.pygram.entity.JudgeQuestion;
import com.baomidou.mybatisplus.extension.service.IService;
import com.qsbc.pygram.entity.MultiQuestion;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author baomidou
 * @since 2023-01-01
 */
public interface JudgeQuestionService extends IService<JudgeQuestion> {


    List<JudgeQuestion> findByIdAndType(Integer paperId);

    IPage<JudgeQuestion> findAll(Page<JudgeQuestion> page);

    JudgeQuestion findOnlyQuestionId();

    int add(JudgeQuestion judgeQuestion);

    List<Integer> findBySubject(String subject,Integer pageNo);

    Page<JudgeQuestion> findPage(Page<JudgeQuestion> objectPage, String subject, String section, String level);
}
